<template>
    <div class="customNavPop">
      <div class="customNavPopSction">
        <div class="popSctionTop">
          <span class="text" >提示</span> 
          <!-- <span class="icon">X</span> -->
          <span class="icon"  @click="handleClick(0)"> <van-icon name="cross" /></span>
        </div>
        <div class="popSctionCenter">
          <slot name="header"></slot>
        </div>
        <div class="popSctionBottom">
          <slot name="put"></slot>
        </div>
      </div>
    </div>
</template>


<script setup lang="ts">
  import { onMounted } from "vue"
  import { useRouter } from 'vue-router';
  import { Toast } from '/@/utils/Message';
  const router = useRouter();
  const $emit = defineEmits<{
      (e: "send-message", data: any): void;
  }>();
  onMounted(() => {
    
  });

  const handleClick = (v:any) => { 
    $emit("send-message", v);
  }
  defineExpose({
    handleClick
  });
</script>


<style lang="less" scoped>
  .customNavPop {
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    z-index: 1000;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color:rgba(0, 0, 0, 0.7);
    .customNavPopSction {
      width: 351px;
      // height: 208px;
      border-radius: 7px;
      background: #FFFFFF;
      padding: 0  0 17px 0;
      border: 1px solid #FFFFFF;
      .popSctionTop {
        width: 100%;
        height: 43px;
        display: flex;
        font-size: 17px;
        color: #222222;
        font-weight: bold;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid #E1E3E6;
        display: flex;
        .text{
          flex: 1;
          text-align: center;
          padding-left: 20px
        }
        .icon{
          width: 40px;
          text-align: center;
        }
      }
      .popSctionCenter {
        font-size: 13px;
        padding: 0 19px;
        margin-top: 23px;
        color: #222222;
        text-align: left;
      }
      .popSctionBottom {
        font-size: 13px;
        margin-top: 13px;
        color: #222222;
      }
      .popSctionBootm {
        display: flex;
        padding: 0 19px;
        margin-top: 23px;
        div:first-child{
          width: 151px;
          height: 47px;
          display: flex;
          color: #1971FF;
          border-radius: 7px;
          align-items: center;
          background: #FFFFFF;
          justify-content: center;
          border: 1px solid #198AFA;
        }
        div:last-child{
          width: 151px;
          height: 47px;
          display: flex;
          color: #FFFFFF;
          margin-left: 10px;
          border-radius: 7px;
          align-items: center;
          background: #198AFA;
          justify-content: center;
          border: 1px solid #198AFA;
        }
      }
    }
  }

</style>
  
  